﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Models;

namespace Models
{
    public class Workflow : EntityBase
    {
        [Display(Name="流程名称"),MaxLength(50)]
        public string WorkflowName { get; set; }

        public Employee Applyer { get; set; }

        public Employee RealApplyer { get; set; }

        public virtual List<Field> Fields { get; set; }

        public virtual List<Condition> Conditions { get; set; }

        public virtual List<Activity> Activities { get; set; }

        public virtual List<Participant> Participants { get; set; }

        public virtual List<ActivityResult> ActivityResults { get; set; }

        [Display(Name = "版本号"),Range(1, Int16.MaxValue)]
        public int? Version { get; set; }

        [Display(Name = "流程类别")]
        public string Category { get; set; }

        [Display(Name = "是否允许代理")]
        public bool AllowProxy { get; set; }

        [Display(Name = "审批周期(天)")]
        public int? Duration { get; set; }
    }

}


   